package cc.ilzy.mall.model.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.validation.constraints.Email;
import java.io.Serial;
import java.io.Serializable;

@Data
@Accessors(chain = true)
@ApiModel(value = "用户登录请求对象", description = "用户登录请求对象")
public class UserLoginRequest implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;
    @ApiModelProperty(value = "用户邮箱", example = "1184498638@qq.com")
    @Email
    private String mail;

    @ApiModelProperty(value = "用户密码", example = "123456")
    private String pwd;

    @ApiModelProperty(value = "用户ip地址", example = "127.0.0.1", required = false)
    private String ip;
}
